<!DOCTYPE HTML>
<html>
<head>
<script>
	window.onload = function(){
		var canvas = document.getElementById("myCanvas")
		var context = canvas.getContext("2d");
		context.lineWidth = 10;
		context.strokeStyle = "blue";
		context.moveTo(50, canvas.height-50);
		context.lineTo(canvas.width-50, 50);
		context.stroke();
	}
</script>
</head>
<body>
	<canvas id="myCanvas" width="578" height="200">
	</canvas>
</body>
</html>